home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
662.swf
/
scripts
/
frame_13
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
2KB
|
98 lines
if(player_grad[1] == 0)
{
player_grade = calc_grade(1,result,9);
}
else
{
setProperty("player_point", _X, player_point_x + 80);
player_grade = calc_grade(11,result,19);
}
if(21 < player_grade || add_card >= 5)
{
if(run_split == 1 && split == 1)
{
num = 13;
add_card = 1;
run_split = 0;
player_card[0] = add_card;
player_grad[0] = player_grade;
player_grad[1] = result[11] % 13;
need = 1;
gotoAndPlay(10);
}
else if(run_split == 0 && player_card[0] != 0)
{
player_card[1] = add_card;
player_grad[1] = player_grade;
add_card = 2;
if(21 >= player_grade || 21 < player_grade && 21 >= player_grad[0])
{
gotoAndPlay(17);
}
else
{
gotoAndPlay(18);
}
}
else if(21 >= player_grade)
{
if(player_grad[1] == 0 && run_split == 1)
{
player_card[0] = add_card;
player_grad[0] = player_grade;
}
else
{
player_card[1] = add_card;
player_grad[1] = player_grade;
}
gotoAndPlay(17);
}
else
{
if(player_grad[1] == 0 && run_split == 1)
{
player_card[0] = add_card;
player_grad[0] = player_grade;
}
else
{
player_card[1] = add_card;
player_grad[1] = player_grade;
}
gotoAndPlay(18);
}
}
else if(result[1] % 13 == result[3] % 13 && split == 0 && add_card == 2)
{
gotoAndPlay(15);
}
else if(player_grade == 21)
{
if(player_grad[1] == 0 && run_split == 1)
{
player_card[0] = add_card;
player_grad[0] = player_grade;
}
else
{
player_card[1] = add_card;
player_grad[1] = player_grade;
}
gotoAndPlay(17);
}
else
{
if(player_grad[1] == 0 && run_split == 1)
{
player_card[0] = add_card;
player_grad[0] = player_grade;
}
else
{
player_card[1] = add_card;
player_grad[1] = player_grade;
}
gotoAndPlay(14);
}